﻿
<div>
    <ul id="leftMenu">
        <li class="k-state-active"><b>我的信息</b>
            <ul>
                <li><a href="/Systems/SysLog/">系统公告</a></li>
                <li><a href="/Accounts/User/">帐号管理</a></li>
                <li><a href="/Accounts/User/Password">修改密码</a></li>
            </ul>
        </li>
        @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "SchoolAdmin"))
        {
            <li ><b>学校管理</b>
                <ul>
                    <li><a href="/School/Class">班级管理</a></li>
                    <li><a href="/School/Student/">学生管理</a></li>
                    <li><a href="/School/Teacher/">体育教师</a></li>
                    <li><a href="/School/Student/IDNO">修改身份证</a></li>
                </ul>
            </li>    
            <li ><b>体测数据</b>
                <ul>
                    <!--<li><a href="/Achievements/Archive/InSchool">私有档案</a></li>-->
                    <!--<li><a href="/Statistics/Results/ImportCountByClass">成绩情况</a></li>-->
                    
                    <li><a href="/Achievements/Mark/InputMarks">导入成绩</a></li>
                    <li><a href="/Achievements/Mark/ChangeMark">成绩修改</a></li>
                    <li><a href="/Achievements/Mark/StudentList">学生成绩</a></li>
                </ul>
            </li>
        }
        @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "Bureau"))
        {
            if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "BureauAdmin"))
            {
            <li ><b>体质健康</b>
                <ul>
                    <li><a href="/Achievements/Archive/">档案管理</a></li>
                </ul>
            </li>
            }
            <li ><b>单位管理</b>
                <ul>
                    <li><a href="/School/SchoolInfo/Schools">学校列表</a></li>
                    <li><a href="/Systems/Bureau/">直属机构</a></li>
                    @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "BureauAdmin"))
                    {
                        <li><a href="/Systems/Bureau/Bureaus">下属机构</a></li>
                    }
                </ul>
            </li>
        }
        @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "SchoolAdmin"))
        {
            <li ><b>数据分析</b>
                <ul>
                    <li><a href="/Analyses/ANS/RS4Sample">进度统计</a></li>
                    <li><a href="/Analyses/ANS/RS4Class">班级分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Sex">性别分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Grade">年级分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Teacher">教师分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Subject">项目分析</a></li>
                </ul>
            </li>
            <li ><b>历年报告</b>
                <ul>
                    <li><a href="/Analyses/ANS/PS4Sample">采集报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Class">班级报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Sex">性别报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Grade">年级报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Teacher">教师报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Subject">项目报告</a></li>
                </ul>
            </li>
        }
        @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "Bureau"))
        {
            <li ><b>数据分析</b>
                <ul>
                    <li><a href="/Analyses/ANB/RB4Sample">进度统计</a></li>
                    <li><a href="/Analyses/ANB/RB4School">学校分析</a></li>
                    <li><a href="/Analyses/ANB/RB4Bureau">机构分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Teacher">教师分析</a></li>
                    <li><a href="/Analyses/ANB/RB4Grade">年级分析</a></li>
                    <li><a href="/Analyses/ANB/RB4OriSchool">生源地分析</a></li>
                    <li><a href="/Analyses/ANS/RS4Subject">项目分析</a></li>
                </ul>
            </li>
            <li ><b>历年报告</b>
                <ul>
                    <li><a href="/Analyses/ANB/PB4Sample">采集报告</a></li>
                    <li><a href="/Analyses/ANB/PB4School">学校报告</a></li>
                    <li><a href="/Analyses/ANB/PB4Bureau">机构报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Teacher">教师报告</a></li>
                    <li><a href="/Analyses/ANB/PB4Grade">年级报告</a></li>
                    <li><a href="/Analyses/ANB/PB4OriSchool">生源地报告</a></li>
                    <li><a href="/Analyses/ANS/PS4Subject">项目报告</a></li>
                </ul>
            </li>
        }

        <li ><b>国家标准</b>
            <ul>
                <li><a href="/Standard/Subject/">项目列表</a></li>
                <li><a href="/Standard/Evaluation/">评分标准</a></li>
                <li><a href="/Standard/Evaluation/Additional">加分标准</a></li>
            </ul>
        </li>
        @if (PH.Web.Global.WebContext.CurrentUser.Roles.Any(p => p.RoleName == "WebAdmin"))
        {
            <li ><b>系统管理</b>
                <ul>
                    <li><a href="/Systems/Notice/">公告消息</a></li>
                    <li><a href="/Systems/Web/">网站管理</a></li>
                </ul>
            </li>
        }
    </ul>
</div>

<script>
    $("#leftMenu").kendoPanelBar({
        expandMode: "single"
    });

    function LocatedMenu(main, sub) {
        var menu = $("#leftMenu").data("kendoPanelBar");
        var mm = $("#leftMenu li:contains('" + main + "')");
        var sm = $("#leftMenu li ul li:contains('" + sub + "')");
        menu.select(sm);
        menu.expand(mm);
    }
</script>
